# 3段1位版本
version = "1.2.3"
ver_num = int(version.replace(".", ""))
print(f"version: {version} number: {ver_num}")
""" 结果:
version: 1.2.3 number: 123
"""

# 3段2位版本
version = "01.02.03"
ver_num = int(version.replace(".", ""))
print(f"version: {version} number: {ver_num}")
""" 结果
version: 01.02.03 number: 10203
"""